From: John Paul Wallington Date: Mon, 30 Aug 2004 19:04:18 +0000 (+0000) Subject: (tex-validate-buffer): Use distinct strings rather than X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21233 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=932d135b7f6e60414a668e7c741201c830a673b1;p=emacs.git (tex-validate-buffer): Use distinct strings rather than programatically constructing message. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 115dd6f88f0..1c4b89f0a62 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1145,9 +1145,10 @@ on the line for the invalidity you want to see." (if no-matches (insert "None!\n")) (if (interactive-p) - (message "%s mismatch%s found" - (if no-matches "No" num-matches) - (if (> num-matches 1) "es" "")))))))) + (message (cond (no-matches "No mismatches found") + ((= num-matches 1) "1 mismatch found") + (t "%d mismatches found")) + num-matches))))))) (defun tex-validate-region (start end) "Check for mismatched braces or $'s in region.